﻿namespace WMS6.Web.BillingServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, DataContract(Name="FaultDetail", Namespace="PowerWMS6"), GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class FaultDetail : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private bool contactAdministratorField;
        [OptionalField]
        private string descriptionField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string messageField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public bool contactAdministrator
        {
            get
            {
                return this.contactAdministratorField;
            }
            set
            {
                if (!this.contactAdministratorField.Equals(value))
                {
                    this.contactAdministratorField = value;
                    this.RaisePropertyChanged("contactAdministrator");
                }
            }
        }

        [DataMember]
        public string description
        {
            get
            {
                return this.descriptionField;
            }
            set
            {
                if (!object.ReferenceEquals(this.descriptionField, value))
                {
                    this.descriptionField = value;
                    this.RaisePropertyChanged("description");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string message
        {
            get
            {
                return this.messageField;
            }
            set
            {
                if (!object.ReferenceEquals(this.messageField, value))
                {
                    this.messageField = value;
                    this.RaisePropertyChanged("message");
                }
            }
        }
    }
}

